import { axios } from '@/utils/request'

const api = {
  getSetting: '/setting/setting/get-setting',
  saveSetting: '/setting/setting/save-setting'
}

export default api

export function getSetting (parameter) {
  return axios({
    url: api.getSetting,
    method: 'get',
    params: parameter
  })
}

export function saveSetting (parameter) {
  return axios({
    url: api.saveSetting,
    method: 'post',
    data: parameter
  })
}
export function miniAuditGoods (data) {
  return axios({
    url: '/setting/setting/mini-audit-goods',
    method: 'get',
    params: data
  })
}
export function miniAuditGoodsSave (data) {
  return axios({
    url: '/setting/setting/mini-audit-goods-save',
    method: 'post',
    data: data
  })
}
